package com.changba.schedule.service;

import com.chongba.entity.Task;
import com.chongba.exception.ScheduleSystemException;
import com.chongba.exception.TaskNotExistException;

public interface ScheduleService {

    Long addTask(Task task) throws ScheduleSystemException;

    boolean cancelTask(Long taskId) throws TaskNotExistException;

    long size(int taskType , int priority) ;

    Task poll(int taskType , int priority) throws  TaskNotExistException;

    void refresh();



}
